﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="tin-dang-list.ascx.cs" Inherits="Admin_UserControl_tin_dang_list" %>


<h1 class="titlePage">
    <span style="padding: 5px 5px 5px 35px; display: inline-block;">Danh sách tin đăng</span>
</h1>
<div class="form" style="padding: 10px; width: 98%;">
    <div class="form-row">
        <b>Danh sách tin đăng</b>
    </div>
    <div class="form-row">
        <asp:GridView ID="grvTinDang" AutoGenerateColumns="False" CssClass="table" runat="server">
            <Columns>
                <asp:TemplateField HeaderText="Ảnh">
                    <ItemTemplate>
                        <img src="/<%#Eval("ti_anh")%>" width="50" height="50" />
                    </ItemTemplate>
                </asp:TemplateField>	
                <asp:BoundField DataField="ti_tieude" HeaderText="Tiêu đề" />
                 <asp:BoundField DataField="DM2_TIEUDE" HeaderText="Danh mục" />
                <asp:BoundField DataField="ti_soluotxem" HeaderText="Lượt xem" />
                <asp:BoundField DataField="ti_status" HeaderText="Trạng thái" />
                <asp:TemplateField HeaderText="">
                    <ItemTemplate>
                        <b><a href="?mo=tin-dang-edit&<%=basConst.QR_URL_ID%>=<%#Eval("TI_ID")%>">Sửa</a></b>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
</div>
